<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_title" class="control-label col-xs-12 col-sm-2">{:__('Title')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_title" data-rule="" class="form-control" name="row[en_title]" type="text" value="{$row.en_title}">
        </div>
    </div>

    <div class="form-group type-editor">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[content]', $row.content, ['id' => 'c-content'])}
        </div>
    </div>
    <div class="form-group type-editor">
        <label for="c-en_content" class="control-label col-xs-12 col-sm-2">{:__('Content')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[en_content]', $row.en_content, ['id' => 'c-en_content'])}
        </div>
    </div>

    <div class="form-group type-editor">
        <label for="c-mobile_content" class="control-label col-xs-12 col-sm-2">{:__('Mobile_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[mobile_content]', $row.mobile_content, ['id' => 'c-mobile_content'])}
        </div>
    </div>
    <div class="form-group type-editor">
        <label for="c-mobile_en_content" class="control-label col-xs-12 col-sm-2">{:__('Mobile_en_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[mobile_en_content]', $row.mobile_en_content, ['id' => 'c-mobile_en_content'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">背景图:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('img',$row.img,['name'=>"row[img]",'data-rule'=>"required"])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile_image" class="control-label col-xs-12 col-sm-2">{:__('Mobile_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('mobile_image',$row.mobile_image,['name'=>"row[mobile_image]",'data-rule'=>"required"])}
        </div>
    </div>

    <div class="form-group layer-footer" style="margin-bottom: 50px;">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('Save')}</button>
        </div>
    </div>
</form>